package com.itheima.admin.dto;

import com.itheima.admin.pojo.Dept;
import com.itheima.admin.pojo.Role;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class DeptDto {
    private String state;
    private String deptName;
    private String parentId;

    public Dept toDept(){
        Dept dept = new Dept();
        BeanUtils.copyProperties(this,dept);
        return dept;
    }
}
